﻿<%@ Page Language="C#" MasterPageFile="~/home.master" AutoEventWireup="true" CodeFile="profiles.aspx.cs" Inherits="profiles" Title="Profiles" ValidateRequest="false" %>
<%@ Register assembly="BasicFrame.WebControls.BasicDatePicker" namespace="BasicFrame.WebControls" tagprefix="BDP" %>
<%@ Register assembly="FreeTextBox" namespace="FreeTextBoxControls" tagprefix="FTB" %>
<asp:Content ContentPlaceHolderID="head" Runat="Server">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="200" valign="top" bgcolor="#e8eaed">
                <asp:Panel ID="panel_menulist" Width="100%" runat="server"></asp:Panel>
            </td>
            <td valign="top" style="padding-left:10px">            
                
                <fieldset>
                <legend style="font-size:15px;color:#F00;font-weight:bold">Details</legend>
                <div>
                    <div id="layout_back" runat="server" visible="false" style="font-size: 15px; color: #F00; padding-top: 10px;text-align:center">
                        <b><asp:Label ID="lbl_msg" runat="server" Text=""></asp:Label></b>
                        <div><a href="profiles.aspx">[ Back ]</a></div>
                    </div>
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="vl" />
                    <table width="100%" id="layout_infor" runat="server" border="0" cellspacing="5" style="font-size: 18px">
                        <tr>
                            <td width="100" align="right">Email</td>
                            <td><asp:TextBox ID="txt_email" Enabled="false" class="input_text_view" runat="server"></asp:TextBox></td>
                        </tr>            
                        <tr>
                            <td align="right">Name</td>
                            <td>
                                <asp:TextBox ID="txt_name" class="input_text_view" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txt_name"
                                    ErrorMessage="Name is not empty." ValidationGroup="vl">*</asp:RequiredFieldValidator>                           
                            </td>
                        </tr>
                        <tr>
                            <td align="right">Address</td>
                            <td>
                                <asp:TextBox ID="txt_address" class="input_text_view" runat="server" ></asp:TextBox>
                                 <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_address"
                                    ErrorMessage="Address is not empty." ValidationGroup="vl">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">City</td>
                            <td>
                                <asp:TextBox ID="txt_city" class="input_text_view" runat="server" ></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txt_city"
                                    ErrorMessage="City is not empty." ValidationGroup="vl">*</asp:RequiredFieldValidator>   
                            </td>
                        </tr>

                         <tr>
                            <td align="right">Country</td>
                            <td>
                                <asp:TextBox ID="txt_country" class="input_text_view" runat="server" ></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txt_country"
                                    ErrorMessage="Country is not empty." ValidationGroup="vl">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">Phone</td>
                            <td>
                                <asp:TextBox ID="txt_phone" class="input_text_view" runat="server"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txt_phone"
                                    ErrorMessage="Phone enter only numbers" ValidationExpression="^\d+$" ValidationGroup="vl">*</asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" valign="top">Description</td>
                            <td>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="ftb_description"
                                    ErrorMessage="Description is not empty." ValidationGroup="vl">*</asp:RequiredFieldValidator>
                                <FTB:FreeTextBox ID="ftb_description" Height="200px" Width="100%" 
                                    runat="server" ButtonSet="OfficeMac">
                                </FTB:FreeTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">Birthday</td>
                            <td>
                                <BDP:BasicDatePicker ID="bdp_birthday" runat="server" DateFormat="yyyy-MM-dd" ReadOnly="True"></BDP:BasicDatePicker>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="bdp_birthday"
                                    ErrorMessage="Please choose birthday." ValidationGroup="vl">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">Avatar</td>
                            <td><asp:FileUpload ID="file_upload" runat="server" /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <asp:Button ID="btn_save" ValidationGroup="vl" class="btnWhite" runat="server" Text="Save" onclick="btn_save_Click" />
                            </td>
                        </tr>
                    </table>        
                </div>
            </fieldset>
                
            </td>
        </tr>
    </table>
</asp:Content>